package com.pri.chat.adapter;

import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.netease.nim.uikit.net.entity.KeFuEntity;
import com.pri.chat.R;

import java.util.List;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

/**
 * 描述：添加类的描述
 *
 * @author
 * @time 2020/5/9
 */
public class KeFuMsgDetailAdapter extends BaseQuickAdapter<KeFuEntity, BaseViewHolder> {
    private OnImageClickListener mOnImageClickListener;
    public void setOnImageClickListener( OnImageClickListener listener) {
        mOnImageClickListener = listener;
    }
    public interface OnImageClickListener {

        void onItemClick(View view, int c_pos, int f_pos);
    }
    public KeFuMsgDetailAdapter(int layoutResId, @Nullable List<KeFuEntity> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, KeFuEntity item) {
        helper.setText(R.id.tvContent,item.getTitle());
    }
}
